Skip to main content

All Questions

5votes
3answers
7kviews

How to write tests for function that depends on a config file?

I have a function that uses information from a config file. How do I test the function? Ideally, I'd want to inject my own version of the config file and test from there, but I'm not using dependency ...
sinθ's user avatar
  • 1,311

close